<%--
  Created by IntelliJ IDEA.
  User: lirui
  Date: 2020/7/21
  Time: 7:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
  <head>
    <title>主页</title>
  </head>
  <body>
  <%--<%--%>
    <%--Object username = session.getAttribute("username");--%>
    <%--if(username==null){--%>
  <%--%> --%>
  <c:if test="${username == null}">
    <a href="/stu/login.jsp">请登录</a>
  </c:if>
  <c:if test="${username != null}">
    <a href="/stu/addstudent.jsp">添加学生</a>
    <a href="/stu/checktudentservlet">查看学生</a>
  </c:if>


  </body>
</html>
